//轮播图接口
import request from '@/utils/request'

//新增轮播
export function addRotation(data) {
    return request({
        url: '/backend/rotation/add',
        method: 'post',
        data
    })
}
//删除轮播
export function deleteRotation(data) {
    return request({
        url: '/backend/rotation/delete',
        method: 'post',
        data: data
    })
}
//轮播列表
export function getRotationList(data) {
    return request({
        url: '/backend/rotation/list',
        method: 'post',
        data: data
    })
}
//编辑轮播
export function editRotation(data) {
    return request({
        url: '/backend/rotation/update',
        method: 'post',
        data: data
    })
}
